package com.micro.service.common.base;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

/**
 * @author lvxiucai
 * @description
 * @date 2019/7/20
 */
@Data
@AllArgsConstructor
public class SmsCode implements Serializable{


    /**
     * 随机数
     */
    private String code;

    /**
     * 验证吗有效期(秒)
     */
    private long expireTime;

    public SmsCode(String code, int expireIn){
        this.code = code;
        this.expireTime = expireIn;
    }


}
